package org.rc.dto;

import lombok.Data;
import org.rc.entity.*;

@Data
public class UnBindDevAndSelfBindDevRes {
    private Long id;
    private String name;
    private boolean selected =false;

    public static UnBindDevAndSelfBindDevRes getInstance(Sxj sxj){
        UnBindDevAndSelfBindDevRes unBindSxjsRes = new UnBindDevAndSelfBindDevRes();
        unBindSxjsRes.setId(sxj.getId());
        unBindSxjsRes.setName(sxj.getName());
        return unBindSxjsRes;
    }

    public static UnBindDevAndSelfBindDevRes getInstance(Sxzj sxzj){
        UnBindDevAndSelfBindDevRes unBindSxjsRes = new UnBindDevAndSelfBindDevRes();
        unBindSxjsRes.setId(sxzj.getId());
        unBindSxjsRes.setName(sxzj.getName());
        return unBindSxjsRes;
    }

    public static UnBindDevAndSelfBindDevRes getInstance(Slp slp){
        UnBindDevAndSelfBindDevRes unBindSxjsRes = new UnBindDevAndSelfBindDevRes();
        unBindSxjsRes.setId(slp.getId());
        unBindSxjsRes.setName(slp.getName());
        return unBindSxjsRes;
    }

    public static UnBindDevAndSelfBindDevRes getInstance(Shsp shsp){
        UnBindDevAndSelfBindDevRes unBindSxjsRes = new UnBindDevAndSelfBindDevRes();
        unBindSxjsRes.setId(shsp.getId());
        unBindSxjsRes.setName(shsp.getName());
        return unBindSxjsRes;
    }

    public static UnBindDevAndSelfBindDevRes getInstance(Mic mic){
        UnBindDevAndSelfBindDevRes unBindSxjsRes = new UnBindDevAndSelfBindDevRes();
        unBindSxjsRes.setId(mic.getId());
        unBindSxjsRes.setName(mic.getName());
        return unBindSxjsRes;
    }
}
